import request from "@/utils/request";

// 查询产品尺寸列表
export function listSize(query) {
  return request({
    url: "/productSize/list",
    method: "get",
    params: query,
  });
}

// 查询产品尺寸详细
export function getSize(id) {
  return request({
    url: "/productSize/" + id,
    method: "get",
  });
}

// 新增产品尺寸
export function addSize(data) {
  return request({
    url: "/productSize",
    method: "post",
    data: data,
  });
}

// 修改产品尺寸
export function updateSize(data) {
  return request({
    url: "/productSize",
    method: "put",
    data: data,
  });
}

// 删除产品尺寸
export function delSize(id) {
  return request({
    url: "/productSize/" + id,
    method: "delete",
  });
}
